unraveling the pattern